import { Component, defineComponent, ref } from 'vue';
import { Modal } from 'ant-design-vue';
import type { ModalProps, ModalFuncProps } from "ant-design-vue";
export const cp = (component: Component, propsss: ModalProps | ModalFuncProps) => {
  return defineComponent({
    setup() {
      const visible = ref(true);
      return {
        visible,
      };
    },
    render() {
      return (
        <div>
          <Modal v-model:visible={this.visible} {...propsss}>
            {component}
          </Modal>
        </div>
      );
    },
  });
};
